package edu.task.repository;

import edu.task.model.SysUserExplain;
import edu.task.model.SysUserExplainPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserExplainRepository extends JpaRepository<SysUserExplain, SysUserExplainPK> {

    @Modifying
    @Query(value = "delete from sys_explain where explain_id=:explainId ", nativeQuery = true)
    int deleteExplainById(Long explainId);
}
